﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    /// <summary>
    /// 地域违法行为与裁量情节关系配置BLL
    /// </summary>
    public class Xzzf_WfClRelBLL
    {
        Xzzf_WfClRelDAL dal = new Xzzf_WfClRelDAL();

        /// <summary>
        /// 插入地域违法行为与裁量情节关系配置表
        /// </summary>
        /// <param name="disWfClRels">地域违法行为与裁量情节关系models</param>
        /// <returns>返回执行是否成功 True成功 false失败</returns>
        public bool InsertWfClRel(List<Xzzf_WfClRel> disWfClRels)
        {
            return dal.InsertWfClRel(disWfClRels);
        }

        /// <summary>
        /// 根据关系表主键id删除地域违法行为与裁量情节关系数据
        /// </summary>
        /// <param name="zjId">关系表主键id</param>
        /// <returns>返回执行是否成功 True成功 false失败</returns>
        public bool DelWfClRelByZjId(string zjId)
        {
            return dal.DelWfClRelByZjId(zjId);
        }

        /// <summary>
        /// 获取地域违法行为与裁量情节关系配置
        /// </summary>
        /// <param name="ccId">裁量情节ccid</param>
        /// <returns>返回地域违法行为与裁量情节关系查询Model</returns>
        public List<Xzzf_WfClRelCXModel> GetDisWfRelData(string ccId)
        {
            return dal.GetDisWfRelData(ccId);
        }
    }
}
